package com.hhkj.admin.order.domain;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.core.domain.BizBaseEntity;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.Objects;

import lombok.*;

/**
 * 记录每条订单内的子订单情况
 * @TableName s_order_item
 */
@TableName(value ="s_order_item")
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class OrderItem extends BizBaseEntity{
    /**
     * 关联的订单id，关联s_order
     */
    @TableField(value = "order_id")
    private Long orderId;


    /**
     * 固化学员名称，对应t_student
     */
    @TableField(value = "name")
    @Excel(name = "姓名", orderNum = "0", width = 30)
    private String name;

    /**
     * 固化学员身份证，对应t_student
     */
    @TableField(value = "id_card")
    @Excel(name = "身份证号", orderNum = "1", width = 30)
    private String idCard;

    /**
     * 固化学员身份证，对应t_student
     */
    @TableField(value = "phone")
    @Excel(name = "手机号", orderNum = "2", width = 30)
    private String phone;

    /**
     * 固化类目名称，对应s_course
     */
    @TableField(value = "course_Id")
    private Long courseId;

    /**
     * 固化类目名称，对应s_course
     */
    @TableField(value = "course_name")
    @Excel(name = "科目名称", orderNum = "3", width = 30)
    private String courseName;

    /**
     * 固化购买的天数，对应s_course_price
     */
    @TableField(value = "day_amount")
    @Excel(name = "账号期限", orderNum = "4", width = 30)
    private Integer dayAmount;

    /**
     * 固化购买的价格，应用s_course_price
     */
    @TableField(value = "price")
    @Excel(name = "学员单价", orderNum = "5", width = 30)
    private BigDecimal price;

    /**
     * 默认题库id
     */
    @TableField(value = "course_bank_type_id")
    private Long courseBankTypeId;

    /**
     * 购买的价格信息
     */
    @TableField(value = "course_price_id")
    private Long coursePriceId;

    /**
     * 退款状态
     */
    @TableField(value = "refund_status_code")
    private String refundStatusCode;

    /** 学员课程id，对于t_student_course表 **/
    private Long studentCourseId;


}